package itbour.onetouchshow.utils;

import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * Created by zjl_d on 2017/4/28.
 * 本广播用于替代AppManager来关闭三段式逻辑
 */
public class FinshBroadcast extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        if (context != null) {
            if (context instanceof Activity) {
                ((Activity) context).finish();
            }
        }
    }
}
